package main

import (
	"demo/webSocket/routers"
	_ "demo/webSocket/routers"
	"demo/webSocket/service"
	"github.com/gin-gonic/gin"
)

func main() {
	gin.SetMode(gin.ReleaseMode)
	r := gin.New()
	r.Use(gin.Logger(), gin.Recovery())
	gin.SetMode(gin.DebugMode)

	routers.InitV1(r)
	//起定时器检测队列中有多少客户端
	service.NewWebSocketService().SetupTimer()

	r.Run(":8080")

}
